<template>
  <el-button type="primary" @click="Addcolum()">新增栏位</el-button>
  <el-table :data="Showinfo" border style="width: 100%">
    <el-table-column prop="columnManagementId" label="序号" />
    <el-table-column prop="columnName" label="栏位名称" />

    <el-table-column label="操作" />

  </el-table>
</template>

<script lang="ts" setup>
import starts from "@/api/EarTagManagement/index";
import vendor from "@/api/OrganizationalAdministration/index";
import { Ridgepole } from "@/api/OrganizationalAdministration/model";
import { Rideg } from "@/api/OrganizationalAdministration/index";
import axios from "axios";
import { number } from "echarts";
import { useRouter, useRoute } from "vue-router";
const useRoutes = useRouter()
const useRoutea = useRoute()

const Showinfo=ref([])
const GetShow = () => {
  vendor.GetColumnShow(useRoutea.query.ridgepoleId).then(res => {
    Showinfo.value=res.data
  console.log("数据",res.data)
  })
}

const Addcolum = (ridgepoleId) => {
  useRoutes.push({
    path: "/AddColumnList",
    query: {
      ridgepoleId: useRoutea.query.ridgepoleId
    }
  })
}



onMounted(()=>{
  GetShow()
})

</script>